Read image from graphics file 您所在的位置:网站首页 matlab inputfile Read image from graphics file

Read image from graphics file

2024-04-15 18:55| 来源: 网络整理| 查看: 265

Region boundary, specified as the comma-separated pair consisting of 'PixelRegion' and a cell array of the form {rows,cols}. The rows input specifies the range of rows to read. The cols input specifies the range of columns to read. rows and cols must be either two-element or three-element vectors of 1-based indices. A two-element vector specifies the first and last rows or columns to read. For example, 'PixelRegion',{[1 2],[3 4]} reads the region bounded by rows 1 and 2 and columns 3 and 4 in the image data.

A three-element vector must be in the form [start increment stop], where start is the first row or column to read, increment is an incremental value, and stop is the last row or column to read. This syntax allows image downsampling. For example, 'PixelRegion',{[1 2 10],[4 3 12]} reads the region bounded by rows 1 and 10 and columns 4 and 12, and samples data from every 2 pixels in the vertical direction, and every 3 pixels in the horizontal direction.

Example: 'PixelRegion',{[1 100],[4 500]}

Data Types: cell



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有